<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibQQt: QQtDictionary Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibQQt
   &#160;<span id="projectnumber">v3.1</span>
   </div>
   <div id="projectbrief">开源、跨平台Qt应用程序框架中间件</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public Types</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="class_q_qt_dictionary-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">QQtDictionary Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The <a class="el" href="class_q_qt_dictionary.html" title="The QQtDictionary class QQt 字典 字典当中包含 有序tuple 操作方式 dict[0] = [&quot;&quot;,&quot;&quot;,&quot;&quot;,5] dict[max-1] = {&quot;&quot;=&quot;&quot;,&quot;&quot;=&quot;&quot;,&quot;&quot;=&quot;&quot;,&quot;&quot;=&quot;&quot;} 不支持无序tuple 操作方式 无 包含具名映射 操作方式 dict[&quot;cccc&quot;] = {&quot;&quot;=&quot;&quot;, &quot;&quot;=&quot;&quot;} dict[&quot;eeee&quot;] = [&quot;&quot;, &quot;&quot;, &quot;&quot;] 接受嵌套访问 操作方式 dict[&quot;cccc&quot;][0][&quot;eeeee&quot;] 通过重载函数来实现类型的变化，不建议使用中更改类型。 比json和xml的数据结构要庞大。toJson toXML fromJson fromXML QVariant 不能直接获取到真实数据，改变必须使用临时变量。 而且，接口设计也不够灵活，存入和取出都不太方便。 ">QQtDictionary</a> class QQt 字典 字典当中包含 有序tuple 操作方式 dict[0] = ["","","",5] dict[max-1] = {""="",""="",""="",""=""} 不支持无序tuple 操作方式 无 包含具名映射 操作方式 dict["cccc"] = {""="", ""=""} dict["eeee"] = ["", "", ""] 接受嵌套访问 操作方式 dict["cccc"][0]["eeeee"] 通过重载函数来实现类型的变化，不建议使用中更改类型。 比json和xml的数据结构要庞大。toJson toXML fromJson fromXML QVariant 不能直接获取到真实数据，改变必须使用临时变量。 而且，接口设计也不够灵活，存入和取出都不太方便。  
 <a href="class_q_qt_dictionary.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="qqtdictionary_8h_source.html">qqtdictionary.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-types"></a>
Public Types</h2></td></tr>
<tr class="memitem:a09d6b632e2334a157207ae3dec35aa21"><td class="memItemLeft" align="right" valign="top"><a id="a09d6b632e2334a157207ae3dec35aa21"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><b>tagDictType</b> { <b>DictValue</b>, 
<b>DictList</b>, 
<b>DictMap</b>, 
<b>DictMax</b>
 }</td></tr>
<tr class="separator:a09d6b632e2334a157207ae3dec35aa21"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a836ea52c0d7ec8c6fbbf0ffe19c0fcce"><td class="memItemLeft" align="right" valign="top"><a id="a836ea52c0d7ec8c6fbbf0ffe19c0fcce"></a>
typedef enum QQtDictionary::tagDictType&#160;</td><td class="memItemRight" valign="bottom"><b>EDictType</b></td></tr>
<tr class="separator:a836ea52c0d7ec8c6fbbf0ffe19c0fcce"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a31411f34db7fb15ebc753150ba513000"><td class="memItemLeft" align="right" valign="top"><a id="a31411f34db7fb15ebc753150ba513000"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isNull</b> () const</td></tr>
<tr class="separator:a31411f34db7fb15ebc753150ba513000"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af6c0369d341e4df75ce6470fb75d9e3c"><td class="memItemLeft" align="right" valign="top"><a id="af6c0369d341e4df75ce6470fb75d9e3c"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isValid</b> () const</td></tr>
<tr class="separator:af6c0369d341e4df75ce6470fb75d9e3c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aac41571f4af553f810149968281d8b5e"><td class="memItemLeft" align="right" valign="top"><a id="aac41571f4af553f810149968281d8b5e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isEmpty</b> () const</td></tr>
<tr class="separator:aac41571f4af553f810149968281d8b5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9b3d0b8592316a2019ca49f7ddb16082"><td class="memItemLeft" align="right" valign="top"><a id="a9b3d0b8592316a2019ca49f7ddb16082"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isValue</b> () const</td></tr>
<tr class="separator:a9b3d0b8592316a2019ca49f7ddb16082"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a49b3c72462621bf0e9b4ffbb51002306"><td class="memItemLeft" align="right" valign="top"><a id="a49b3c72462621bf0e9b4ffbb51002306"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isList</b> () const</td></tr>
<tr class="separator:a49b3c72462621bf0e9b4ffbb51002306"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a338ef75428b7812f00ac31d5891ba4c3"><td class="memItemLeft" align="right" valign="top"><a id="a338ef75428b7812f00ac31d5891ba4c3"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>isMap</b> () const</td></tr>
<tr class="separator:a338ef75428b7812f00ac31d5891ba4c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74db42b92cc4f4b397c3fee6ff1e68d4"><td class="memItemLeft" align="right" valign="top"><a id="a74db42b92cc4f4b397c3fee6ff1e68d4"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>count</b> () const</td></tr>
<tr class="separator:a74db42b92cc4f4b397c3fee6ff1e68d4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a914c3673ee2312dd361dc379ed1bc554"><td class="memItemLeft" align="right" valign="top"><a id="a914c3673ee2312dd361dc379ed1bc554"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> () const</td></tr>
<tr class="separator:a914c3673ee2312dd361dc379ed1bc554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af81c573727fc296db7e331e9f2186530"><td class="memItemLeft" align="right" valign="top"><a id="af81c573727fc296db7e331e9f2186530"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasChild</b> (const QString &amp;key) const</td></tr>
<tr class="separator:af81c573727fc296db7e331e9f2186530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1dea0c52119550861498142b858c745e"><td class="memItemLeft" align="right" valign="top"><a id="a1dea0c52119550861498142b858c745e"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>hasChild</b> (const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;value) const</td></tr>
<tr class="separator:a1dea0c52119550861498142b858c745e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af539bedcf276472102f662922c617c1e"><td class="memItemLeft" align="right" valign="top"><a id="af539bedcf276472102f662922c617c1e"></a>
QMap&lt; QString, <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getMap</b> () const</td></tr>
<tr class="separator:af539bedcf276472102f662922c617c1e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae17bdfc858980efb5cd9a11e0c35c530"><td class="memItemLeft" align="right" valign="top"><a id="ae17bdfc858980efb5cd9a11e0c35c530"></a>
QList&lt; <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getList</b> () const</td></tr>
<tr class="separator:ae17bdfc858980efb5cd9a11e0c35c530"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a73b40df4e62b42d313b7717d65f9b5d8"><td class="memItemLeft" align="right" valign="top"><a id="a73b40df4e62b42d313b7717d65f9b5d8"></a>
QVariant &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getValue</b> ()</td></tr>
<tr class="separator:a73b40df4e62b42d313b7717d65f9b5d8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55a2fc5d1ea6685b6a00bc3bf5acc595"><td class="memItemLeft" align="right" valign="top"><a id="a55a2fc5d1ea6685b6a00bc3bf5acc595"></a>
const QVariant &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getValue</b> () const</td></tr>
<tr class="separator:a55a2fc5d1ea6685b6a00bc3bf5acc595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a117826220ac49d8ed7df361b3b649433"><td class="memItemLeft" align="right" valign="top"><a id="a117826220ac49d8ed7df361b3b649433"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getChild</b> (int index)</td></tr>
<tr class="separator:a117826220ac49d8ed7df361b3b649433"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0835aab025508cc7b4b5bca5445b75d0"><td class="memItemLeft" align="right" valign="top"><a id="a0835aab025508cc7b4b5bca5445b75d0"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>getChild</b> (const QString &amp;key)</td></tr>
<tr class="separator:a0835aab025508cc7b4b5bca5445b75d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac6a0cbec9ac3e471dbb1889d8d7cda3e"><td class="memItemLeft" align="right" valign="top"><a id="ac6a0cbec9ac3e471dbb1889d8d7cda3e"></a>
EDictType&#160;</td><td class="memItemRight" valign="bottom"><b>getType</b> () const</td></tr>
<tr class="separator:ac6a0cbec9ac3e471dbb1889d8d7cda3e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc7a06f0c3e643fed35f64bb690a30b1"><td class="memItemLeft" align="right" valign="top"><a id="adc7a06f0c3e643fed35f64bb690a30b1"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>getTypeName</b> () const</td></tr>
<tr class="separator:adc7a06f0c3e643fed35f64bb690a30b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a03075e4ad003217f22f4c09c9a251fec"><td class="memItemLeft" align="right" valign="top"><a id="a03075e4ad003217f22f4c09c9a251fec"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setType</b> (EDictType type)</td></tr>
<tr class="separator:a03075e4ad003217f22f4c09c9a251fec"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5b1d32e8ed39c14a83d5f15319296e00"><td class="memTemplParams" colspan="2"><a id="a5b1d32e8ed39c14a83d5f15319296e00"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a5b1d32e8ed39c14a83d5f15319296e00"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><b>setValue</b> (const T &amp;value)</td></tr>
<tr class="separator:a5b1d32e8ed39c14a83d5f15319296e00"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0d2d5bfc2daf699e7b1b141a982c6663"><td class="memItemLeft" align="right" valign="top"><a id="a0d2d5bfc2daf699e7b1b141a982c6663"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setValue</b> (const QVariant &amp;value)</td></tr>
<tr class="separator:a0d2d5bfc2daf699e7b1b141a982c6663"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4da6fd97e86cd804a3fa3b4d380ee029"><td class="memItemLeft" align="right" valign="top"><a id="a4da6fd97e86cd804a3fa3b4d380ee029"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setChild</b> (const QList&lt; <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &gt; &amp;list)</td></tr>
<tr class="separator:a4da6fd97e86cd804a3fa3b4d380ee029"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acf6d749acdb47dfa2f4ccc4a724b5353"><td class="memItemLeft" align="right" valign="top"><a id="acf6d749acdb47dfa2f4ccc4a724b5353"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setChild</b> (const QMap&lt; QString, <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &gt; &amp;map)</td></tr>
<tr class="separator:acf6d749acdb47dfa2f4ccc4a724b5353"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7da621e7fd07ac8d39aaee37ebbf03b1"><td class="memItemLeft" align="right" valign="top"><a id="a7da621e7fd07ac8d39aaee37ebbf03b1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addChild</b> (const QString &amp;value)</td></tr>
<tr class="separator:a7da621e7fd07ac8d39aaee37ebbf03b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2eec41827066a649efa56e1fad7166c7"><td class="memItemLeft" align="right" valign="top"><a id="a2eec41827066a649efa56e1fad7166c7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addChild</b> (const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;dict)</td></tr>
<tr class="separator:a2eec41827066a649efa56e1fad7166c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab57815be9a511eaf550fe99ce844f238"><td class="memItemLeft" align="right" valign="top"><a id="ab57815be9a511eaf550fe99ce844f238"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>insertChild</b> (int index, const QString &amp;value)</td></tr>
<tr class="separator:ab57815be9a511eaf550fe99ce844f238"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7a12dd1a7d3cd833393257905a2d48e"><td class="memItemLeft" align="right" valign="top"><a id="ad7a12dd1a7d3cd833393257905a2d48e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>insertChild</b> (int index, const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;dict)</td></tr>
<tr class="separator:ad7a12dd1a7d3cd833393257905a2d48e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5fe64418ab4d7a2470b64afcdf22538e"><td class="memItemLeft" align="right" valign="top"><a id="a5fe64418ab4d7a2470b64afcdf22538e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>insertChild</b> (const QString &amp;key, const QString &amp;value)</td></tr>
<tr class="separator:a5fe64418ab4d7a2470b64afcdf22538e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58e8cc1f08e8e152faa1db45ee2d1269"><td class="memItemLeft" align="right" valign="top"><a id="a58e8cc1f08e8e152faa1db45ee2d1269"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>insertChild</b> (const QString &amp;key, const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;dict)</td></tr>
<tr class="separator:a58e8cc1f08e8e152faa1db45ee2d1269"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ebadc66f8ddb6f745822565a7866c4f"><td class="memItemLeft" align="right" valign="top"><a id="a7ebadc66f8ddb6f745822565a7866c4f"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>modValue</b> (const QVariant &amp;value)</td></tr>
<tr class="separator:a7ebadc66f8ddb6f745822565a7866c4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a448801706d9ef233111c9261818b4e76"><td class="memItemLeft" align="right" valign="top"><a id="a448801706d9ef233111c9261818b4e76"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>modChild</b> (int index, const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;value)</td></tr>
<tr class="separator:a448801706d9ef233111c9261818b4e76"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0f3befd7005f06b7a3633fed30f19f7"><td class="memItemLeft" align="right" valign="top"><a id="ac0f3befd7005f06b7a3633fed30f19f7"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>modChild</b> (const QString &amp;key, const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;value)</td></tr>
<tr class="separator:ac0f3befd7005f06b7a3633fed30f19f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5cbeaae0e278ba55e5533a6a07102c4b"><td class="memItemLeft" align="right" valign="top"><a id="a5cbeaae0e278ba55e5533a6a07102c4b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr class="separator:a5cbeaae0e278ba55e5533a6a07102c4b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aca3b98717f725fa5343406c9d4b72b88"><td class="memItemLeft" align="right" valign="top"><a id="aca3b98717f725fa5343406c9d4b72b88"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>remove</b> (int index)</td></tr>
<tr class="separator:aca3b98717f725fa5343406c9d4b72b88"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab399be0a54ef404067ae178239982e7e"><td class="memItemLeft" align="right" valign="top"><a id="ab399be0a54ef404067ae178239982e7e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>remove</b> (const QString &amp;key)</td></tr>
<tr class="separator:ab399be0a54ef404067ae178239982e7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a278d14ccfcd2d24ac0ceb9f7af4308e6"><td class="memItemLeft" align="right" valign="top"><a id="a278d14ccfcd2d24ac0ceb9f7af4308e6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtDictionary</b> (const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;other)</td></tr>
<tr class="separator:a278d14ccfcd2d24ac0ceb9f7af4308e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2662ede343378c0172c963f7ba3658f5"><td class="memItemLeft" align="right" valign="top"><a id="a2662ede343378c0172c963f7ba3658f5"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtDictionary</b> (const QVariant &amp;value)</td></tr>
<tr class="separator:a2662ede343378c0172c963f7ba3658f5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7c813a8667438a0635bc9951a008523"><td class="memItemLeft" align="right" valign="top"><a id="af7c813a8667438a0635bc9951a008523"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>QQtDictionary</b> (const EDictType type)</td></tr>
<tr class="separator:af7c813a8667438a0635bc9951a008523"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ec61d302f16d8cbebd59f1d62254ded"><td class="memItemLeft" align="right" valign="top"><a id="a7ec61d302f16d8cbebd59f1d62254ded"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int index)</td></tr>
<tr class="separator:a7ec61d302f16d8cbebd59f1d62254ded"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af1c7639b7bbb4f57c03ff67b81b5ffcd"><td class="memItemLeft" align="right" valign="top"><a id="af1c7639b7bbb4f57c03ff67b81b5ffcd"></a>
const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int index) const</td></tr>
<tr class="separator:af1c7639b7bbb4f57c03ff67b81b5ffcd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a14a0084db18267a1eec302ed79ca99ad"><td class="memItemLeft" align="right" valign="top"><a id="a14a0084db18267a1eec302ed79ca99ad"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (const QString &amp;key)</td></tr>
<tr class="separator:a14a0084db18267a1eec302ed79ca99ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4308785c7eda6cc9abe8f53c1938eaa5"><td class="memItemLeft" align="right" valign="top"><a id="a4308785c7eda6cc9abe8f53c1938eaa5"></a>
const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a>&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (const QString &amp;key) const</td></tr>
<tr class="separator:a4308785c7eda6cc9abe8f53c1938eaa5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11389a81fe4b50f84f685cfe969f8d0a"><td class="memItemLeft" align="right" valign="top"><a id="a11389a81fe4b50f84f685cfe969f8d0a"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const QMap&lt; QString, <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &gt; &amp;map)</td></tr>
<tr class="separator:a11389a81fe4b50f84f685cfe969f8d0a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a89070c4531124d6d0aa9f310f9364748"><td class="memItemLeft" align="right" valign="top"><a id="a89070c4531124d6d0aa9f310f9364748"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const QList&lt; <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &gt; &amp;list)</td></tr>
<tr class="separator:a89070c4531124d6d0aa9f310f9364748"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab51cac1112393bc13ea3b8424b028035"><td class="memItemLeft" align="right" valign="top"><a id="ab51cac1112393bc13ea3b8424b028035"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;other)</td></tr>
<tr class="separator:ab51cac1112393bc13ea3b8424b028035"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2f56c114e86ff37d43d926538bc4d3a2"><td class="memItemLeft" align="right" valign="top"><a id="a2f56c114e86ff37d43d926538bc4d3a2"></a>
<a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const QVariant &amp;value)</td></tr>
<tr class="separator:a2f56c114e86ff37d43d926538bc4d3a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2454a484f96f28bb7ab5b823111f9474"><td class="memItemLeft" align="right" valign="top"><a id="a2454a484f96f28bb7ab5b823111f9474"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;other) const</td></tr>
<tr class="separator:a2454a484f96f28bb7ab5b823111f9474"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a108ec31dc21d0bac5882f132765d7936"><td class="memItemLeft" align="right" valign="top"><a id="a108ec31dc21d0bac5882f132765d7936"></a>
QString&#160;</td><td class="memItemRight" valign="bottom"><b>toXML</b> ()</td></tr>
<tr class="separator:a108ec31dc21d0bac5882f132765d7936"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a67ccbbc2cf977745030f6523c19fd432"><td class="memItemLeft" align="right" valign="top"><a id="a67ccbbc2cf977745030f6523c19fd432"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fromXML</b> (QString &amp;xmlContent)</td></tr>
<tr class="separator:a67ccbbc2cf977745030f6523c19fd432"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f4ddd7ed9a89decf09edcaec39df2b0"><td class="memItemLeft" align="right" valign="top"><a id="a5f4ddd7ed9a89decf09edcaec39df2b0"></a>
QByteArray&#160;</td><td class="memItemRight" valign="bottom"><b>toJson</b> (QJsonDocument::JsonFormat format=QJsonDocument::Compact)</td></tr>
<tr class="separator:a5f4ddd7ed9a89decf09edcaec39df2b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3341eb4b903d2ca235ee0d0c29e1a29e"><td class="memItemLeft" align="right" valign="top"><a id="a3341eb4b903d2ca235ee0d0c29e1a29e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>fromJson</b> (const QByteArray &amp;json)</td></tr>
<tr class="separator:a3341eb4b903d2ca235ee0d0c29e1a29e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3f8421945b33ab7f10b1c6b4a768e6e4"><td class="memTemplParams" colspan="2"><a id="a3f8421945b33ab7f10b1c6b4a768e6e4"></a>
template&lt;typename T &gt; </td></tr>
<tr class="memitem:a3f8421945b33ab7f10b1c6b4a768e6e4"><td class="memTemplItemLeft" align="right" valign="top">bool&#160;</td><td class="memTemplItemRight" valign="bottom"><b>operator==</b> (const T &amp;inst) const</td></tr>
<tr class="separator:a3f8421945b33ab7f10b1c6b4a768e6e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9864d0dc76fd4d7c77153843170de52"><td class="memItemLeft" align="right" valign="top"><a id="af9864d0dc76fd4d7c77153843170de52"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><b>operator==</b> (const QVariant &amp;var) const</td></tr>
<tr class="separator:af9864d0dc76fd4d7c77153843170de52"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:acf17c035907e23cea768d845bd8c67c1"><td class="memItemLeft" align="right" valign="top"><a id="acf17c035907e23cea768d845bd8c67c1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>parseJsonValue</b> (const QJsonValue &amp;value, <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;parent)</td></tr>
<tr class="separator:acf17c035907e23cea768d845bd8c67c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a735eb1778440d3c8c4cd4fbc577d2618"><td class="memItemLeft" align="right" valign="top"><a id="a735eb1778440d3c8c4cd4fbc577d2618"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>parseDictionaryToJsonValue</b> (const <a class="el" href="class_q_qt_dictionary.html">QQtDictionary</a> &amp;node, QJsonValue &amp;result)</td></tr>
<tr class="separator:a735eb1778440d3c8c4cd4fbc577d2618"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The <a class="el" href="class_q_qt_dictionary.html" title="The QQtDictionary class QQt 字典 字典当中包含 有序tuple 操作方式 dict[0] = [&quot;&quot;,&quot;&quot;,&quot;&quot;,5] dict[max-1] = {&quot;&quot;=&quot;&quot;,&quot;&quot;=&quot;&quot;,&quot;&quot;=&quot;&quot;,&quot;&quot;=&quot;&quot;} 不支持无序tuple 操作方式 无 包含具名映射 操作方式 dict[&quot;cccc&quot;] = {&quot;&quot;=&quot;&quot;, &quot;&quot;=&quot;&quot;} dict[&quot;eeee&quot;] = [&quot;&quot;, &quot;&quot;, &quot;&quot;] 接受嵌套访问 操作方式 dict[&quot;cccc&quot;][0][&quot;eeeee&quot;] 通过重载函数来实现类型的变化，不建议使用中更改类型。 比json和xml的数据结构要庞大。toJson toXML fromJson fromXML QVariant 不能直接获取到真实数据，改变必须使用临时变量。 而且，接口设计也不够灵活，存入和取出都不太方便。 ">QQtDictionary</a> class QQt 字典 字典当中包含 有序tuple 操作方式 dict[0] = ["","","",5] dict[max-1] = {""="",""="",""="",""=""} 不支持无序tuple 操作方式 无 包含具名映射 操作方式 dict["cccc"] = {""="", ""=""} dict["eeee"] = ["", "", ""] 接受嵌套访问 操作方式 dict["cccc"][0]["eeeee"] 通过重载函数来实现类型的变化，不建议使用中更改类型。 比json和xml的数据结构要庞大。toJson toXML fromJson fromXML QVariant 不能直接获取到真实数据，改变必须使用临时变量。 而且，接口设计也不够灵活，存入和取出都不太方便。 </p>
</div><hr/>The documentation for this class was generated from the following files:<ul>
<li>R:/Develop/a0-develop/LibQQt/src/core/<a class="el" href="qqtdictionary_8h_source.html">qqtdictionary.h</a></li>
<li>R:/Develop/a0-develop/LibQQt/src/core/qqtdictionary.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
